package com.example.demo.service.Impl;

import com.example.demo.map.ProfessionMapper;
import com.example.demo.service.ProfessionService;
import com.example.demo.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

public class ProfessionServiceImpl implements ProfessionService {
    @Override
    public int queryByProName(String proName) {
        SqlSession sqlSession = MybatisUtil.getSqlSession();
        ProfessionMapper mapper = sqlSession.getMapper(ProfessionMapper.class);
        int i = mapper.queryByProName(proName);
        return i;
    }
}
